package com.trana.demo;

public class demo7 {
	public static void main(String[] args) {
		Moo2 moo= new Moo2();
		moo.function(100, 100);
	}

}

class Moo1{
	int f1(int num1,int num2){
	int result=num1+num2;
	return result;
	}
	}

class Moo2 extends Moo1{
	int f1(int num1,int num2){
		int result=num1*num2;
		return result;
		}
//num1+num2+num1*num2
	//super.f1()   this.f1()
	void function(int num1,int num2){
		int result=
			super.f1(num1, num2)+this.f1(num1, num2);
		System.out.println("result="+result);
	}
}